package mythread.demo001;

public class MyThread13Test extends Thread {

    public static void main(String[] args) {
        try {
            MyThread13 myThread13 = new MyThread13();
            MyThread13T th13t = new MyThread13T(myThread13);
            th13t.start();
            Thread.sleep(500);
            th13t.stop();
            System.out.println(myThread13.getUname()+","+myThread13.getUpwd());
            //b aa - 强行停止，数据不一致
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
